import requests
import time
import random
#获取token
def get_token():
    url = 'http://hxzhan.rtcloud.com:32111/sso/api/v1/common/login'
    headers = {
        'content-type':'application/json; charset=utf-8'
    }
    json = {"username":"xiaoqing","password":"N4aGDzp6idb9VbQP6UN77WWUxaw91m1/trWr7qKoy/ewOb6ax5UfKIfvA4qWqWgm"}
    response = requests.post(url=url,headers=headers,json=json)
    return response.json()['data']['token']
def get_time():
    return str(int(time.time()))
def get_id():
    return str(random.randint(1,10000000000))

